package com.yh.nacos.dev.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangheng
 * @version 1.0
 * @date 2024/7/13 11:19
 */
@RequestMapping("/nacos")
@RestController
@RefreshScope
public class DevController {

    @Value(value = "${nacos.study.dev}")
    private String devStr;

    @Value("${nacos.study.extend}")
    private String devStrExt;

    @RequestMapping("/dev")
    public String devTest(){
        return devStr+devStrExt;
    }
}
